package org.skypilotplugin.util;

 import java.awt.event.*;  

import javax.swing.JTextField;
 public class ChangedText extends JTextField implements KeyListener {  
      
    private static final long serialVersionUID = 1L;  
      
    private boolean changed = false;  
         
    public ChangedText(String text){  
       super(text);  
       this.addKeyListener(this);  
    }       
    public boolean getTextChanged (){  
       return changed;  
    }  
   
    public void keyTyped(KeyEvent arg0) {        
    }  
   
    public void keyPressed(KeyEvent arg0) {  
       changed = true;        
   }  
   
    public void keyReleased(KeyEvent arg0) {        
    }  
      
 
}  